package com.collection;

import java.util.HashMap;
import java.util.Iterator;

@SuppressWarnings({"all"})
public class HomeWork_2 {
    public static void main(String[] args) {
        HashMap hashMap=new HashMap();
        hashMap.put("jack",650);
        hashMap.put("tom",1200);
        hashMap.put("simth",2900);
        hashMap.put("jack",650);



    }
}
class employ{
    private String name;
    private double sal;

    public employ(String name, double sal) {
        this.name = name;
        this.sal = sal;
    }

    @Override
    public String toString() {
        return "employ{" +
                "name='" + name + '\'' +
                ", sal=" + sal +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }
}